import request from '@/utils/request'

// 查询订单成本汇总列表
export function listZcOrderCostSummary(query) {
  return request({
    url: '/business/ZcOrderCostSummary/list',
    method: 'get',
    params: query
  })
}

// 查询订单成本汇总详细
export function getZcOrderCostSummary(id) {
  return request({
    url: '/business/ZcOrderCostSummary/' + id,
    method: 'get'
  })
}

// 新增订单成本汇总
export function addZcOrderCostSummary(data) {
  return request({
    url: '/business/ZcOrderCostSummary',
    method: 'post',
    data: data
  })
}

// 修改订单成本汇总
export function updateZcOrderCostSummary(data) {
  return request({
    url: '/business/ZcOrderCostSummary',
    method: 'put',
    data: data
  })
}

// 删除订单成本汇总
export function delZcOrderCostSummary(id) {
  return request({
    url: '/business/ZcOrderCostSummary/' + id,
    method: 'delete'
  })
}
